<#if currentScope.packageName?? >
package ${currentScope.packageName};
</#if>

<#list currentScope.package as pkg>
import ${pkg};
</#list>

/**
 * <p>
 * ${table.comment!}
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#list currentScope.typeAnnotations as an>
${an}
</#list>
<#if currentScope.superClass??>
public class ${currentScope.simpleName} extends ${currentScope.superClass.simpleName} {
<#else>
public class ${currentScope.simpleName} implements Serializable {
</#if>

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;
<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>

    <#list field.annotationAttributesList as an>
        <#if !an.displayName?starts_with("@TableId(")>
    ${an.displayName}
        </#if>
    </#list>
    private ${field.propertyType} ${field.propertyName};
</#list>
<#------------  END 字段循环遍历  ---------->

}
